<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html class="pixel-ratio-2 retina android android-6 android-6-0"><head>
	<title>游戏代理后台</title>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

	<meta name="description" content="">

	<link rel="stylesheet" href="${ctx }/templates/default/skins/default/h5/lib/weui.min.css">
	<link rel="stylesheet" href="${ctx }/templates/default/skins/default/h5/css/jquery-weui.css">
	<link rel="stylesheet" href="${ctx }/templates/default/skins/default/h5/css/lehe.css">

<body ontouchstart="">
<heaer>
	<div class="header">
		<a href="javascript:history.go(-1);" class="title">
			<span class="header-icon4"></span>
		</a>
		<span class="title-txt J-title-txt">返点提现</span>
	</div>
	<div class="header-secondary"></div>
</heaer>

<div class="weui-cells weui-cells_form" style="margin-top: 5px;">

	<div class="weui-cells">
		<form id="formId" name="formName">
			<div class="weui-cell weui-cell_select weui-cell_select-after">
				<div class="weui-cell__hd">
					<label class="weui-label">选择年份</label>
				</div>
				<div class="weui-cell__bd">
					<select class="weui-select" name="year" id="year" onchange="$('#formId').submit();">
						<c:forEach var="item" items="${years}">
							<option value="${item}" <c:if test="${item == year}">selected</c:if> >${item}</option>
						</c:forEach>
					</select>
				</div>
			</div>
		</form>
		<div class="weui-form-preview">
			<div class="weui-form-preview__ft">
				<span class="weui-form-preview__btn weui-form-preview__btn_primary">月份</span>
				<span class="weui-form-preview__btn weui-form-preview__btn_primary">充值金额</span>
				<span class="weui-form-preview__btn weui-form-preview__btn_primary">可提金额</span>
				<span class="weui-form-preview__btn weui-form-preview__btn_primary">已提金额</span>
				<span class="weui-form-preview__btn weui-form-preview__btn_primary">操作</span>
			</div>
			<c:forEach var="item" items="${withdrawCashDto}">
				<div class="weui-form-preview__ft">
					<span class="weui-form-preview__btn weui-form-preview__btn_default black">
						${item.inputTimeCn}
					</span>
					<span class="weui-form-preview__btn weui-form-preview__btn_primary black">
						<c:if test="${empty item.payCount || item.payCount == 0}">-</c:if>
						<c:if test="${item.payCount > 0}"><fmt:formatNumber value="${item.payCount}" pattern="#0.00" />元</c:if>
					</span>
					<span class="weui-form-preview__btn weui-form-preview__btn_primary black">
						<c:if test="${(empty item.payCount || item.payCount == 0) && (empty item.enableAmtCount || item.enableAmtCount == 0)}">-</c:if>
						<c:if test="${item.payCount > 0 && item.enableAmtCount >= 0}"><fmt:formatNumber value="${item.enableAmtCount}" pattern="#0.00" />元</c:if>
					</span>
					<span class="weui-form-preview__btn weui-form-preview__btn_primary black">
						<c:if test="${(empty item.payCount || item.payCount == 0) && (empty item.alreadyAmtCount || item.alreadyAmtCount == 0)}">-</c:if>
						<c:if test="${item.payCount > 0 && item.alreadyAmtCount >= 0}"><fmt:formatNumber value="${item.alreadyAmtCount}" pattern="#0.00" />元</c:if>
					</span>
					<span class="weui-form-preview__btn weui-form-preview__btn_primary black">
						<c:if test="${item.payCount > 0 && item.canApply}">
							<%--<a href="http://m.qpqpgame.com/wanko_pay/wxpaynotify/TransfersForAgent.php?PayMoney=${item.enableAmtCount}&URL=http://119.23.142.205/cash/index"
							   class="weui-btn weui-btn_mini weui-btn_primary" style="margin-top: 12px;">提现</a>--%>
						</c:if>
						<c:if test="${item.payCount > 0 && !item.canApply}">
							<%--<a href="javascript:;" class="weui-btn weui-btn_mini weui-btn_default weui-btn_disabled" style="margin-top: 12px;">已提</a>--%>
						</c:if>
					</span>
				</div>
				<c:if test="${not empty item.tradeList}">
					<c:forEach var="tradeList" varStatus="ti" items="${item.tradeList}">
						<div class="weui-form-preview__ft">
						<span class="weui-form-preview__btn_default" style="padding-left: 20px;font-size: 14px;">
							提现记录：${tradeList.paymentTime} 提现<fmt:formatNumber value="${tradeList.money}" pattern="#0.00" />元
						</span>
						</div>
					</c:forEach>
				</c:if>
			</c:forEach>
		</div>
	</div>

</div>

<script src="${ctx }/templates/default/skins/default/h5/lib/jquery-2.1.4.js"></script>
<script src="${ctx }/templates/default/skins/default/h5/js/jquery-weui.js"></script>

</body>
</html>
